/*
 * GUIRoadSegment.h
 *
 *  Created on: 20/10/2009
 *      Author: marcos
 */

#ifndef GUIROADSEGMENT_H_
#define GUIROADSEGMENT_H_

#include "gui/objects/GUIObject.h"
#include "map/RoadSegment.h"

namespace gui {

class GUIRoadSegment: public GUIObject {
public:

	GUIRoadSegment(RoadSegment* roadSegment);

	GUIRoadSegment(double width, Intersection* origin, Intersection* destination);

	virtual ~GUIRoadSegment();

private:

	virtual void setDimensionsAndLocation(double width, Intersection* origin, Intersection* destination);

	virtual double getRoadSegmentLength(Intersection* o, Intersection* d);

};

}

#endif /* GUIROADSEGMENT_H_ */
